<template>
  <button class="mdc-button mdc-button--text back-btn" @click="goBack" aria-label="返回">
    <i class="material-icons">arrow_back</i>
  </button>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
}
</script>

<style scoped>
.back-btn {
  background: none;
  border: none;
  color: white;
  padding: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(3px);
  margin: 0;
  min-width: auto;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(8px) scale(1.05);
}

.back-btn:active {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(3px) scale(0.95);
}

.back-btn .material-icons {
  font-size: 28px;
  line-height: 1;
}
</style>